import request from '@/utils/request'

// 查询单设计数据列表
export function listDesignFormData(query) {
  return request({
    url: '/data/designFormData/list',
    method: 'get',
    params: query
  })
}

// 查询单设计数据详细
export function getDesignFormData(id) {
  return request({
    url: '/data/designFormData/' + id,
    method: 'get'
  })
}

// 保存单设计数据
export function saveDesignFormData(data) {
  return request({
    url: '/data/designFormData/save',
    method: 'post',
    data: data
  })
}

// 删除单设计数据
export function delDesignFormData(id) {
  return request({
    url: '/data/designFormData/' + id,
    method: 'delete'
  })
}

// 导出单设计数据
export function exportDesignFormData(query) {
  return request({
    url: '/data/designFormData/export',
    method: 'get',
    params: query
  })
}
// 设计表
export function getAllTbale() {
  return request({
    url: '/data/designFormData/getAllTbale',
    method: 'get'
  })
}

// 根据查询单设计数据详细
export function getFormDataById(id) {
  return request({
    url: '/data/designFormData/getFormDataById/' + id,
    method: 'get'
  })
}
// 根据查询单设计数据详细
export function getCurrentHeadDetailsById(id) {
  return request({
    url: '/data/designFormData/getCurrentHeadDetailsById/' + id,
    method: 'get'
  })
}
// 保存菜单
export function saveMenu(data, id) {
  return request({
    url: '/data/designFormData/saveMenu/' + id,
    method: 'post',
    data: data
  })
}

